<?php
namespace app\providers\facade;

use app\common\library\Container;

/**
 * @method static string|null getDefaultDriver() 默认驱动
 * @method static mixed getConfig(null|string $name = null, mixed $default = null) 获取缓存配置
 * @method static array getStoreConfig(string $store, string $name = null, null $default = null)
 */
class RedisFacade extends Facade
{
    /**
     * 获取当前Facade对应类名（或者已经绑定的容器对象标识）
     * @access protected
     * @return string
     */
    protected static function getFacadeClass()
    {
        return 'app\providers\redis\RedisManager';
    }

    protected static function getArgs()
    {
        return [
            'app' => Container::getInstance(),
            'driver' => 'predis',
            'config' => config('redis'),
        ];
    }
}